﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MiniDrone.GUI.Controls
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    /// 
    public partial class HeadMenu : UserControl
    {
        #region Properties

        private DependencyProperty Button_Connect_Image_Name_Property = DependencyProperty.Register("Button_Connect_Image_Name", typeof(BitmapImage), typeof(HeadMenu));

        #region Getter and Setter

        public BitmapImage Button_Connect_Image
        {
            get { return (BitmapImage)GetValue(Button_Connect_Image_Name_Property); }
            set { SetValue(Button_Connect_Image_Name_Property, value); }
        }

        #endregion

        #endregion

        public HeadMenu()
        {
            InitializeComponent();
            InitializeDefauts();
        }

        private void InitializeDefauts()
        {
            Button_Connect_Image = new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), @"Resources/connect2_checkmark.png"));
        }

        private void Button_Connect_Click(object sender, RoutedEventArgs e)
        {
            Button_Connect_Image = new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), @"Resources/connect2_down.png"));
        }
    }
}
